﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server" action="WebForm2.aspx">
        <div>
            用户名：<asp:TextBox ID="UserName" runat="server"></asp:TextBox><br />
            密  码：<asp:TextBox ID="Password" runat="server"></asp:TextBox><br />
            <asp:Button ID="Button1" runat="server" Text="登录Aciton" /><%--submit--%>
            <asp:Button ID="Button2" runat="server" Text="登录PostBackUrl" PostBackUrl="~/WebForm2.aspx"/>
            <asp:Button ID="Button3" runat="server" Text="登录Get" OnClick="Button3_Click"/>
            <a href="WebForm2.aspx?n=张三丰&p=999">跳转到页面2</a>
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/WebForm2.aspx?n=令狐冲&p=777">跳转到WebForm2.aspx</asp:HyperLink>
             
        </div>
    </form>
</body>
</html>
